package com.zzj.until;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Log4jDemo {
	public static Logger logger = LogManager.getLogger(LogManager.ROOT_LOGGER_NAME);

	@Test
	public void main(String[] args)  {
		while (true) {
			logger.error("aaa");
			logger.debug("bb");
			logger.info("dd");
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
}
